Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add occupied slots to game rooms api #641

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

reinaldooli
Copy link
Collaborator

This is part of the changes to allow Maestro calculations to be based on the number of matches running in a Game Server.
These changes will allow maestro to receive the number of running matches in a Game Server.

Changes

  • Add running_matches param to the service definition files (proto)
  • Create/Update Room Storage with the number of running matches. Later we'll be able to aggregate the values in this storage to know the total amount of running matches by scheduler.

@@ -130,6 +130,7 @@ type GameRoom struct {
IsValidationRoom bool
LastPingAt time.Time
CreatedAt time.Time
OccupiedSlots int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why don't we use the same naming as the proto? IMO it would simplify maintenance and they seem to map 1:1, right?

@@ -130,6 +130,7 @@ type GameRoom struct {
IsValidationRoom bool
LastPingAt time.Time
CreatedAt time.Time
OccupiedSlots int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why don't we use the same naming as the proto? IMO it would simplify maintenance and they seem to map 1:1, right?

* chore: upgrade and remove some dependecies
* feat: allow maestro to deal with multiple matches per game server (#646)
* feat: allow maestro to deaul with multiple matches per game server
* fix: removing cooling status
* feat: add new metrics (#649)
* feat: add new metrics
* fix: metrics reporter tests
* fix: protobuf linter offenses
* fix: update buf dependencies before running linter
* fix: add max validation to minFreeSlots fields
@reinaldooli reinaldooli merged commit 31b0272 into feature/multiple-matches Nov 25, 2024
6 checks passed
@reinaldooli reinaldooli deleted the feature/api-occupied-slots branch November 25, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants